package cn.appsys.service.devUser;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.appsys.dao.devUser.DevUserMapper;
import cn.appsys.pojo.AppCategory;
import cn.appsys.pojo.AppInfo;
import cn.appsys.pojo.DataDictionary;
import cn.appsys.pojo.DevUser;

@Service("devUserService")
public class DevUserServiceImpl implements DevUserService {
	@Autowired
	private  DevUserMapper devUserMapper;

	@Override
	public DevUser devLoging(DevUser devUser) {
		return devUserMapper.devLoging(devUser);
	}

	@Override
	public List<DataDictionary> getStatusList(String typeCode) {
		return devUserMapper.getStatusList(typeCode);
	}

	@Override
	public List<AppCategory> getCategoryleve(Integer _pid) {
		System.out.println(_pid);
		return devUserMapper.getCategoryleve( _pid);
	}

	@Override
	public int getUserCount(String querySoftwareName, Integer _queryStatus, Integer _queryFlatformId,
			Integer _queryCategoryLevel1, Integer _queryCategoryLevel2, Integer _queryCategoryLevel3) {
		return devUserMapper.getUserCount(querySoftwareName,_queryStatus, _queryFlatformId,
				_queryCategoryLevel1,_queryCategoryLevel2,_queryCategoryLevel3);
	}


	@Override
	public List<AppInfo> getAppInfoList(String querySoftwareName, Integer _queryStatus, Integer _queryFlatformId,
			Integer _queryCategoryLevel1, Integer _queryCategoryLevel2, Integer _queryCategoryLevel3, int currentPageNo,
			int pageSize) {
		currentPageNo=(currentPageNo-1)*pageSize;
		return devUserMapper.getAppInfoList(querySoftwareName,  _queryStatus, _queryFlatformId,
				 _queryCategoryLevel1, _queryCategoryLevel2, _queryCategoryLevel3,currentPageNo,pageSize);
	}


	
}
